package com.hp.dingding.service;

import com.hp.dingding.entity.Employee;
import com.hp.dingding.entity.Note;
import com.hp.dingding.mapper.NoteMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NoteServiceImpl implements NoteService{

    @Resource
    private NoteMapper noteMapper;

    @Override
    public List<Note> queryAll(Integer eid) {
        List<Note> noteList = noteMapper.queryAll(eid);
        if(noteList!=null){
            return noteList;
        }

        return null;
    }

    @Override
    public Integer addNote(Note note) {

        Integer result = noteMapper.addNote(note);
        if(result!=null){
            return  result;
        }
        return null;
    }

    @Override
    public Integer checkNote(Note note) {
        Integer result = noteMapper.checkNote(note);
        if(result!=null){
            return result;
        }
        return null;
    }
}
